<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>File Load Demo</title>

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body>
<div class="container">
    <div class="jumbotron mt-3">
        <h1>File Load Demo</h1>
        <p>This is an demo application that shows how files can be uploaded and
        downloaded to and from Oracle Database using Node.js.</p>
    </div>
    <div id="browser-support-warning" class="alert alert-danger" style="display: none;" role="alert">
        This browser does not have full support for the <a href="http://www.w3.org/TR/file-upload/">File API</a>. As a
        result, this application may not work as designed. Please try a different browser.
    </div>
    <div class="card mb-2">
        <div class="card-body">
            <h3 class="card-title">Upload Files</h3>
            <p>Select the file(s) you would like to upload and then click the upload button.</p>
            <div class="custom-file mb-2">
                <input type="file" class="custom-file-input" id="file-input" multiple>
                <label class="custom-file-label" for="file-input">Choose file</label>
            </div>
        </div>
        <div class="table-responsive">
            <table id="files-to-upload" class="table" style="display:none;">
                <thead>
                <tr>
                    <th>Name</th>
                    <th>Type</th>
                    <th>Bytes</th>
                    <th>Modified</th>
                    <th>Progress</th>
                </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
        <div class="card-body" style="display: none;">
            <button id="file-upload" class="btn btn-primary float-right" type="button" disabled>
                <span class="glyphicon glyphicon-upload" aria-hidden="true"></span>
                Upload
            </button>
        </div>
    </div>
    <div class="card">
        <div class="card-body">
            <h3 class="card-title">Files in Database</h3>
            <p>This is a listing of files that have already been uploaded to the database.</p>
        </div>
        <div class="table-responsive">
            <table id="files-in-db" class="table">
                <thead>
                <tr>
                    <th>Name</th>
                    <th>Type</th>
                    <th>Bytes</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
    </div>
</div>

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/async@2.6.1/dist/async.min.js" integrity="sha256-QRRHCc3xM0GNZvTCvi0vm2f9zdOiOptAy6xGq7qN5hI=" crossorigin="anonymous"></script>
<script src="file-load.js"></script>
</body>
</html>